package com.skilltrackedu.utils;


import com.skilltrackedu.model.CurrentUser;

public class UserContext {
    private static final ThreadLocal<CurrentUser> tl = new ThreadLocal<>();

    public static void set(CurrentUser user) {
        tl.set(user);
    }

    public static CurrentUser get() {
        return tl.get();
    }

    public static void clear() {
        tl.remove();
    }


}
